package com.ibeeking.found.open.b.rest.service;

import com.alibaba.fastjson.JSONObject;
import com.ibeeking.found.open.service.common.param.QueryOpenAuthInfoParam;
import com.ibeeking.found.open.service.common.vo.OpenAuthViewVO;
import com.ibeeking.found.open.service.common.vo.UrlVO;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * @ClassName IAliPayOpenEventService
 * @Description
 * @Author ibeeking
 * @Date 2021-06-18 12:21
 **/

public interface IAliDingTalkOpenEventService {

    /**
     * 开放平台消息事件
     *
     * @param request
     * @param response
     * @return
     */
    Object msgEvent(HttpServletRequest request, HttpServletResponse response, String timestamp, String nonce, String signature, JSONObject body);

    /**
     * 获取永久授权码
     *
     * @param queryParam
     * @return
     * @throws Exception
     * @Author ibeeking
     */
    OpenAuthViewVO getDingTalkTpPermanentAuthInfo(QueryOpenAuthInfoParam queryParam) throws Exception;
    /**
     * 获取授权注册页面扫码授权url   显示二维码
     *
     * @param request
     * @return
     * @throws Exception
     * @Author ibeeking
     */
    UrlVO getDingTalkTpPreAuthUrl(HttpServletRequest request) throws Exception;
}
